package nccu.service.impl;


import nccu.dao.CreditUnionDao;
import nccu.model.CreditUnion;
import nccu.service.CreditUnionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("creditUnionManager")
public class CreditUnionManagerImpl extends GenericManagerImpl<CreditUnion, Long> implements CreditUnionManager {

    CreditUnionDao creditUnionDao;

    @Autowired
    public CreditUnionManagerImpl(CreditUnionDao creditUnionDao) {
        super(creditUnionDao);
        this.creditUnionDao = creditUnionDao;
    }
 
    public List<CreditUnion> findByName(String name) {
        return creditUnionDao.findByName(name);
    }
}